﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<TemplateWeb.Models.ViewModels.GroupViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

<script type="text/javascript">
    function ValidateHopThu() {
        var hoten = document.getElementsByName("HopThu_HoTen").item(0);
        if (hoten.value == "") {
            alert("Please input HoTen");
            return false;
        }
        var emailnguoihoi = document.getElementsByName("HopThu_Email").item(0);
        if (emailnguoihoi.value == "") {
            alert("Please input Email");
            return false;
        }
	    var tieude = document.getElementsByName("HopThu_TieuDe").item(0);
	    if (tieude.value == "") {
		    alert("Please input TieuDe");
		    return false;
	    }
	    var noidung = document.getElementsByName("HopThu_NoiDung").item(0);
	    if (noidung.value == "") {
		    alert("Please input NoiDung");
		    return false;
	    }
	    return true;
    }
    <% if (ViewData["HoiDap"] != null){ %>
		alert('<%= ViewData["HoiDap"] %>');
	<% } %>
</script>

<div id="bc">
	<div class="ja-breadcrums">
		<strong>You are here:</strong> <span class="breadcrumbs pathway">Góp ý</span>
	</div>
</div>
<div id="ja-mainbody" style="width:80%">
    <div id="ja-main" style="width:100%">
        <div id="ja-contentwrap" class="">
            <div id="ja-content" class="column" style="width:100%">
                <div id="ja-current-content" class="column" style="width:100%">
                    <div id="content"></div>
                    <div class="ja-content-main clearfix">
                        <div class="componentheading" style="padding-top: 20px;">Góp ý</div>
                        <div class="cbEditProfile">
                            <div id="cbEditProfileInner" class="cbHtmlEdit">
                                <% using (Html.BeginForm("InsertHopThu", "Home", FormMethod.Post, new { onsubmit = "return ValidateHopThu();" }))
                                   { %>
                                    <div style="display: block;" class="tab-page" id="cbtab11">
                                        <table class="cbFieldsContentsTab cbFields" id="cbtf_11">
                                            <tbody>
                                                <tr class="sectiontableentry2 cbft_predefined">
					                                <td class="titleCell">Họ Tên:</td>
					                                <td class="fieldCell">
                                                        <input type="text" style="width:200px" name="HopThu_HoTen" class="contact_text" value="" />
                                                    </td>
				                                </tr>
                                                <tr class="sectiontableentry1 cbft_primaryemailaddress">
					                                <td class="titleCell">Email:</td>
					                                <td class="fieldCell">
                                                        <input type="text" name="HopThu_Email" style="width:200px" class="contact_text" value="" />
                                                    </td>
				                                </tr>
                                                 <tr class="sectiontableentry2 cbft_predefined">
					                                <td class="titleCell">Tiêu đề:</td>
					                                <td class="fieldCell">
                                                        <input type="text" style="width:700px" name="HopThu_TieuDe" class="contact_text" value="" />
                                                    </td>
				                                </tr>
                                                <tr class="sectiontableentry1 cbft_primaryemailaddress">
					                                <td class="titleCell">Nội dung:</td>
					                                <td class="fieldCell">
                                                        <textarea name="HopThu_NoiDung" class="contact_text" style="height:100px; width:700px; font-family:Arial; font-size:12px"></textarea>
                                                    </td>
				                                </tr>
                                                <tr class="sectiontableentry1 cbft_primaryemailaddress">
					                                <td class="titleCell"></td>
					                                <td class="fieldCell">
                                                        <input type="submit" name="sbt" id="sbt" value="Gửi thư" style="background-image: url(../../Content/Images/Home/bgbutton.jpg); color: #FFFFFF; font-size: 16px; font-weight: bold; border: 1px #DBDBDB solid; height: 30px; margin-top: 10px; cursor: pointer;" />
                                                    </td>
				                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                <% } %>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</asp:Content>
